home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / telecomm / ansi190.lzh / ANSISEQ.TXT < prev    next >
Text File  |  1992-03-28  |  16KB  |  490 lines

  1. ANSI VT-100 Escape sequences
  2.                  Compiled by Timothy Miller
  3.  
  4. This is a list of all the ANSI escape sequences that I could find.
  5. Not all of them are supported by TWS's ANSITERM, but I have marked 
  6. which ones are and which are not. 
  7.  
  8. Spaces are only for clarity.  <esc> represents ASCII #27 non-printing
  9. character.
  10.  
  11.  
  12. CPR Cursor Position Report
  13. <esc> [ Row ; Col R
  14. Terminal responce to DSR.
  15.  
  16. CUB Cursor Backwards
  17. <esc> [ n D
  18. Moves cursor n positions to the left.  If n=0, default is 1.
  19. If attempt is made to move beyond margin, cursor stops ar margin.
  20.  
  21. CUD Cursor Down
  22. <esc> [ n B
  23. Moves cursor n positions down.  If n=0, default is 1.
  24. If attempt is made to move beyond margin, cursor stops ar margin.
  25.  
  26. CUF Cursor Forward
  27. <esc> [ n C
  28. Moves cursor n positions to the right.  If n=0, default is 1.
  29. If attempt is made to move beyond margin, cursor stops ar margin.
  30.  
  31. CUU Cursor Up
  32. <esc> [ n A
  33. Moves cursor n positions up.  If n=0, default is 1.
  34. If attempt is made to move beyond margin, cursor stops ar margin.
  35.  
  36. CUP Cursor Position
  37. <esc> [ Row ; Col H
  38. Moves cursor to position on screen.  Columns numbered 1-80, Rows
  39. 1-24 unless margins set otherwise.  If parameter is 0 or missing,
  40. 1 is default.
  41.  
  42. DA Device Attributes
  43. <esc> [ n c
  44. n should be 0 or missing.  Terminal responds:
  45.    <esc> [ ? 1 ; 2 c        For ANSI/VT-100 terminal w/o printer
  46.    <esc> [ ? 1 ; 11 c        "     "           "     w/ printer
  47.  
  48. DCH Delete Characters
  49. <esc> [ n P
  50. Causes n characters to be removed from the right of the cursor,
  51. including the cursor.  ANSITERM moves the characters to the right of
  52. the deleted field to be moved left to fill in the empty space.
  53. Spaces to the right of the moved block are filled with blanks
  54. with the same character attributes as the last moved character.
  55.  
  56. DECALN Screen Alignment Display
  57. <esc> # 8
  58. Causes the screen to be filled with uppercase E's to assist in
  59. alligning the screen display.  Not supported by ANSITERM.
  60.  
  61. DECANM ANSI/VT52 Mode
  62. <esc> [ ? 2 l
  63. Causes the terminal to switch to VT-52 mode.  VT-52 is not
  64. supported by ANSITERM.
  65.  
  66. DECARM Auto Repeat Mode
  67. <esc> [ ? 8 h      (on)
  68. <esc> [ ? 8 l      (off)
  69. Turns key auto-repeat on or off.  Not supported by ANSITERM:
  70. auto-repeat is always on.
  71.  
  72. DECAWM Autowrap Mode
  73. <esc> [ ? 7 h     (on)
  74. <esc> [ ? 7 l     (off)
  75. Turns end-of-line wrap on or off.  When off, any characters 
  76. displaying at the right margin will replace any character already
  77. there.  When on, these characters appear at the beginning of
  78. the next line.
  79.  
  80. DECCKM Cursor Keys Mode
  81. <esc> [ ? 1 h        (application)
  82. <esc> [ ? 1 l        (cursor)
  83. In application mode, the cursor keys send the following codes:
  84.    left     <esc> O D
  85.    down     <esc> O B
  86.    right    <esc> O C
  87.    up       <esc> O A
  88. In cursor mode (the default), the cursor keys send:
  89.    left     <esc> [ D
  90.    down     <esc> [ B
  91.    right    <esc> [ C
  92.    up       <esc> [ A
  93.  
  94. DECCOLM Column Mode
  95. <esc> [ ? 3 h      (132 columns)
  96. <esc> [ ? 3 l      (80 columns)
  97. 132 column mode is not supported by ANSITERM.
  98.  
  99. DECDHL Double Height Line
  100. Top half:       <esc> # 3
  101. Bottom half:    <esc> # 4
  102. Causes the whole current line to change to double-width, 
  103. double-height top-half or bottom-half.  If the line was normal,
  104. all characters to the right of the center of the screen are lost.
  105. Cursor remains at the same position unless it would be placed
  106. beyond the right margin, in which case, it would be placed at
  107. the right margin.
  108. Double height is not supported by ANSITERM.
  109.  
  110. DECDWL Double Width Line
  111. <esc> # 6
  112. Causes the current line to become double-width, normal-height.
  113. If the line was normal, all characters to the right of the center 
  114. of the screen are lost.  Cursor remains at the same position 
  115. unless it would be placed beyond the right margin, in which case, 
  116. it would be placed at the right margin.
  117. Double width is not supported by ANSITERM.
  118.  
  119. DECEDM Editing Mode
  120. <esc> [ ? 10 h     (edit)
  121. <esc> [ ? 10 l     (interactive)
  122. In edit mode, characters are only sent when you press return 
  123. (I think).  Interactive mode is normal.
  124. ANSITERM does not support Editing mode.
  125.  
  126. DECEKEM Edit Key Execution Mode
  127. <esc> [ ? 16 h     (immediate)
  128. <esc> [ ? 16 l     (defer)
  129. In immediate state, if the user puts the terminal in edit mode,
  130. the host computer is told.  In the defer state, if the user attempts
  131. to put the terminal in edit mode, the host computer is asked first.
  132. ANSITERM is not an editing terminal.
  133.  
  134. DECID Identity Terminal
  135. <esc> Z
  136. Same as DA, never use this.  ANSITERM doesn't support it either.
  137.  
  138. DECINLM Interlace Mode
  139. <esc> [ ? 9 h     (on)
  140. <esc> [ ? 9 l     (off)
  141. ANSITERM ignores this command.
  142.  
  143. DECKPNM Keypad Numeric Mode
  144. <esc> >
  145. Causes the numeric keypad to send the characters which appear
  146. on the keytops.
  147.  
  148. DECKPAM Keypad Application Mode
  149. <esc> =
  150. Causes the numeric keypad to transmit the following sequences:
  151.    (PF1)           (PF2)           (PF3)           (PF4)
  152.    '(' <esc> O P   ')' <esc> O Q   '/' <esc> O R   '*' <esc> O S
  153.    '7' <esc> O w   '8' <esc> O x   '9' <esc> O y   '-' <esc> O m
  154.    '4' <esc> O t   '5' <esc> O u   '6' <esc> O v   '+' <esc> O 1
  155.    '1' <esc> O q   '2' <esc> O r   '3' <esc> O s
  156.    '0' <esc> O p                   '.' <esc> O n  ENTER <esc> O M
  157. On some terminals, there is a TAB key in place of a '+' key, and
  158. PF1 - PF4 are the top row of keys.
  159.  
  160. DECLL Load LED's
  161. <esc> [ n q
  162. Depending on n, the following action is preformed:
  163.    0    Clear LED's 1 and 2
  164.    1    Set LED 1
  165.    2    Set LED 2
  166. LED's are not supported by ANSITERM.
  167.  
  168. DECLTM Line Transmit Mode
  169. <esc> [ ? 11 h     (line)
  170. <esc> [ ? 11 l     (page)
  171. In edit mode, line, page, or partial page is transmitted by the
  172. terminal.  Edit mode is not supported by ANSITERM.
  173.  
  174. DECXMIT Transmit
  175. <esc> 5
  176. Causes the terminal to transmit the line being edited as if the
  177. user had pressed return to send it.  Edit mode is not supported
  178. by ANSITERM.
  179.  
  180. DECOM Origin Mode
  181. <esc> [ ? 6 h     (relative)
  182. <esc> [ ? 6 l     (absolute)
  183. In relative mode, cursor positions are numbered with respect with
  184. the current scrolling region.  In absolute mode, cursor positions
  185. are numbered with respect to the whole screen.
  186.  
  187. DECPRO Protected Field Attributes
  188. <esc> [ n ; ... ; n }
  189. According to n, sets the following:
  190.    0  no fields are protected
  191.    1  bold implies protection
  192.    4  underline implies protection
  193.    5  blinking implies protection
  194.    7  reverse video implies protection
  195.  254  all attributes off (normal) implies protection
  196. Since ANSITERM is not an editing terminal, it does not support
  197. field protection.
  198.  
  199. DECSC Save Cursor
  200. <esc> 7       (standard)
  201. <esc> [ s     (this must be VT-102 only)
  202. Saves current cursor position and printing attributes.  ANSITERM
  203. only saves position.
  204.  
  205. DECRC Restore Cursor
  206. <esc> 8       (standard)
  207. <esc> [ u     (this must be VT-102 only)
  208. Restores cursor to a previously stored position.
  209.  
  210. DECREQTPARM Request Terminal Parameters
  211. <esc> [ n x
  212. n will be 0 or 1.  Terminal responds with DECREPTPARM.
  213.  
  214. DECREPTPARM Report Terminal Parameters
  215. <esc> [ sol ; par ; nbits ; xspeed ; rspeed ; clkmul ; flags x
  216. Terminal's responce to DECREQTPARM.  Parameters are:
  217. sol : is DECREQTPARM's n is 0, sol = 2.  If n is 1, sol = 3
  218. par : parity:
  219.    1   none
  220.    2   space
  221.    3   mark
  222.    4   odd
  223.    5   even
  224.    ANSITERM sends 1
  225. nbits:  1 for 8 bits, 2 for 7 bits per char (default 1)
  226. xspeed, rspeed:
  227.    code    baud
  228.    0       50
  229.    8       75
  230.    16      110
  231.    24      134.5
  232.    32      150
  233.    40      200
  234.    48      300
  235.    56      600
  236.    64      1200
  237.    72      1800
  238.    80      2000
  239.    88      2400
  240.    96      3600
  241.    104     4800
  242.    112     9600
  243.    120     19200
  244. clkmul: 1   (bit rate multiplier is 16)
  245. flag: 0-15   (ignored)
  246.  
  247. DECSCFDM Space Compression/Field Delimiting Mode
  248. <esc> [ ? 13 h     (on)
  249. <esc> [ ? 13 l     (off)
  250. Sets mode for sending data in edit mode.  ANSITERM does not support
  251. edit mode.
  252.  
  253. DECSCLM Scrolling Mode
  254. <esc> [ ? 4 h     (smooth)
  255. <esc> [ ? 4 l     (jump)
  256. ANSITERM does not support smooth scrolling.
  257.  
  258. DECSCNM Screen Mode
  259. <esc> [ ? 5 h     (normal)
  260. <e